<%@page import="java.util.Date"%>
<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8" trimDirectiveWhitespaces="true"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ include file="/WEB-INF/views/include.inc.jsp"%>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<head>
</head>
<form method="post" action="${ctx}/program/list" onsubmit="return navTabSearch(this)">
	
	<div class="pageHeader">
		<div class="searchBar">
			<ul class="searchContent">
				<li>
					<label>模糊查询：</label>
					<input type="text" name="keywords" value="${keywords}"/>
				</li>
			</ul>
			<div class="subBar">
				<ul>						
					<li><div class="buttonActive"><div class="buttonContent"><button type="submit">查询</button></div></div></li>
				</ul>
			</div>
		</div>
	</div>
</form>
<form id="pagerForm" method="post" action="${ctx}/program/list">
	<input type="hidden" name="pageNum" value="${page.pageNum}" />
	<input type="hidden" name="numPerPage" value="${page.numPerPage}" /> 
	<input type="hidden" name="orderField" value="${page.orderField}" />
	<input type="hidden" name="orderDirection" value="${page.orderDirection}" />
	 
	<input type="hidden" name="keywords" value="${keywords }"/>
</form>
	<div class="panelBar">
		<ul class="toolBar">
			<shiro:hasPermission name="User:save">
				<li><a class="add" target="dialog" href="${ctx}/program/preCreate"><span>添加</span></a></li>
			</shiro:hasPermission>
			<shiro:hasPermission name="User:edit">
				<li><a class="edit" target="dialog"  mask="true" width="530" height="380" href="${ctx}/program/preUpdate/{slt_pid}" ><span>编辑</span></a></li>
			</shiro:hasPermission>
			<shiro:hasPermission name="User:delete">
				<li><a class="delete" target="ajaxTodo"  ref="selectModuleDiv" href="${ctx}/program/delete/{slt_pid}" title="确认要删除该程序?"><span>删除</span></a></li>
			</shiro:hasPermission>
		</ul>
	</div>
	<table class="table" layoutH="138" width="100%">
		<thead>
			<tr>
				<th width="100">程序编码</th>
				<th width="100">程序名称</th>
				<th width="100">程序URL</th>
				<th width="200">程序描述</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach var="item" items="${programList}">
			<tr target="slt_pid" rel="${item.id}">
				<td>${item.strSn}</td>
				<td>${item.strName}</td>
				<td>${item.strUrl}</td>
				<td>${item.strDesc}</td>
			</tr>
			</c:forEach>
		</tbody>
	</table>
	
	<!-- 分页 -->
	<c:import url="/WEB-INF/views/pager/panelBar.jsp"></c:import>
	
